<template>
  <div class="box">
    <Search class="search" />
    <div class="content-box">
      <Banner/>
      <Nav />
      <Books class="books" type="hot" />
      <Books class="books" type="new" />
    </div>
    <MyFooter class="myFooter"/>
  </div>
</template>

<script>

import Search from "../components/Search";
import Banner from "../components/Banner";
import Nav from "../components/Nav";
import Books from "../components/Books";
import MyFooter from "../components/MyFooter";

export default {
  name: "Home",
  components:{
    Search,Banner,Nav,Books,MyFooter
  }
};
     
</script>

<style scoped>

.box{
  width: 100%;
  height: 100%;
}

.search{
  position: fixed;
  top:0;
  left:0;
}

.content-box{
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.books{
  margin-top: 0.1rem;
}

.myFooter{
  position: fixed;
  bottom:0;
  left:0;
}

</style>
